package com.web;


import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.entity.Employee;
import com.service.EmployeeService;

public class CreateProject extends HttpServlet {

	private static final long serialVersionUID = 1L;
	
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		//response.sendRedirect("createProject.jsp");
		EmployeeService service=new EmployeeService();
		List<Employee> employees=service.getAll();
		
		request.setAttribute("employees", employees);
		request.getRequestDispatcher("WEB-INF/views/createProject.jsp").forward(request, response);
	}

}
